const U = require('../../utils')

module.exports = {
  abort_not_login: (req,res,next) => {
    if(req.session.user == null){
      res.json(U.Err('请先登录'))
      return
    }
    next()
  }
}